.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background-color: var(--global-background);
  border: 1px solid var(--pane-border);
  border-radius: var(--border-radius-xl);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.container.pending {
  border-color: var(--primary-overlay-40);
  box-shadow: 0px 0px 40px 0px var(--primary-overlay-40);
}

.container.error {
  border-color: var(--danger-overlay-40);
  box-shadow: 0px 0px 20px 0px var(--severity-critical-40);
}

/* Ensure selectFileButton maintains its color in error state */
.container.error .selectFileButton {
  color: var(--button-primary-foreground);
}

.container.error .selectFileButton[data-variant='outline-secondary'] {
  color: var(--button-secondary-foreground);
}

.container.dragActive {
  background-color: var(--primary-overlay-5);
  border-color: var(--primary-color);
  box-shadow: 0px 0px 20px 0px var(--primary-overlay-20);
}

.uploadSection {
  flex-shrink: 0;
  order: 2;
  background-color: var(--overlay-5);
}

.uploadContainer {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  padding: var(--spacing-4);
}

.divider {
  order: 1;
  width: 100%;
  height: 1px;
  background-color: var(--pane-border);
}

.inputSection {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: var(--spacing-2);
  order: 0;
  padding: var(--spacing-4);
  transition: all var(--default-animation-duration)
    var(--default-timing-function);
}

.textareaWrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.textarea {
  width: 100%;
  min-height: 132px;
  padding: 0;
  overflow: hidden;
  font-family: inherit;
  font-size: var(--font-size-6);
  line-height: 1.6;
  color: var(--global-foreground);
  resize: none;
  background: transparent;
  border: none;
}

.textarea::placeholder {
  color: var(--overlay-30);
  transition: color 0.2s var(--default-timing-function);
}

.textarea:hover::placeholder {
  color: var(--overlay-50);
}

.textarea:focus {
  outline: none;
}

.textarea:disabled {
  cursor: not-allowed;
}

.buttonContainer {
  display: flex;
  gap: var(--spacing-2);
  align-items: center;
  justify-content: flex-end;
}

.buttonCustom {
  height: var(--spacing-9);
  font-size: var(--font-size-4);
}

.error {
  margin-top: var(--spacing-2);
  font-size: var(--font-size-5);
  color: var(--danger-high-contrast-text);
}

/* Drop zone styles */
.dropZone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: var(--spacing-10) var(--spacing-4);
  text-align: center;
  cursor: pointer;
  background-color: transparent;
  border: 1px dashed var(--overlay-20);
  border-radius: var(--border-radius-lg);
  transition: all var(--default-animation-duration)
    var(--default-timing-function);
}

.dropZone:hover {
  background-color: var(--overlay-5);
}

.dropZoneActive {
  background-color: var(--overlay-5);
  border-color: var(--button-primary-background);
}

.dropZoneDisabled {
  pointer-events: none;
  cursor: not-allowed;
}

.dropZoneContent {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropZoneText {
  margin: 0 0 var(--spacing-2) 0;
  font-size: var(--font-size-6);
  line-height: 1.6;
  color: var(--global-foreground);
}

.dropZoneSubtext {
  margin: 0 0 var(--spacing-4) 0;
  font-size: var(--font-size-5);
  line-height: 1.6;
  color: var(--overlay-60);
}

.selectFileButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--spacing-8);
  padding: 0 var(--spacing-3);
  font-size: var(--font-size-4);
  font-weight: 500;
  line-height: normal;
  color: var(--button-primary-foreground);
  cursor: pointer;
  /* Solid Primary style (default) */
  background-color: var(--button-primary-background);
  border: 1px solid var(--button-primary-background);
  border-radius: var(--border-radius-md);
  transition:
    background-color var(--default-hover-animation-duration)
    var(--default-timing-function),
    border-color var(--default-hover-animation-duration)
    var(--default-timing-function);
}

.selectFileButton[data-variant='outline-secondary'] {
  color: var(--button-secondary-foreground);
  background-color: transparent;
  border: 1px solid var(--button-border);
  transition: background-color var(--default-hover-animation-duration)
    var(--default-timing-function);
}

.selectFileButton[data-disabled='true'] {
  color: var(--button-disabled-foreground);
  cursor: not-allowed;
  background-color: var(--button-disabled-background);
  border: 1px solid var(--button-border);
}

.selectFileButton:hover:not([data-disabled='true']) {
  background-color: var(--button-primary-background-hover);
  border-color: var(--button-primary-background-hover);
}

.selectFileButton[data-variant='outline-secondary']:hover:not(
    [data-disabled='true']
  ) {
  background-color: var(--button-background-hover);
  border-color: var(--button-border);
}

.hiddenFileInput {
  display: none;
}

/* Icon container styles */
.iconContainer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 134px;
  height: 93px;
  margin-bottom: var(--spacing-4);
  transition: all var(--default-animation-duration)
    var(--default-timing-function);
}

.fileIcon {
  position: relative;
  z-index: 1;
  width: 134px;
  height: 119px;
  color: var(--overlay-40);
  transition: opacity var(--default-animation-duration)
    var(--default-timing-function);
}

.dropZone:hover .fileIcon {
  color: var(--overlay-60);
  opacity: 1;
}

/* Back files animation */
.fileIcon :global(.file-back-left) {
  transform: rotate(-10deg) translateX(8px) translateY(7px);
  transform-origin: center bottom;
  transition: all var(--default-animation-duration)
    var(--default-timing-function);
}

.fileIcon :global(.file-back-right) {
  transform: rotate(10deg) translateX(-8px) translateY(7px);
  transform-origin: center bottom;
  transition: all var(--default-animation-duration)
    var(--default-timing-function);
}

.fileIcon :global(.file-back-left-hover) {
  opacity: 0;
  transform: rotate(0deg) translateX(8px) translateY(7px);
}

.fileIcon :global(.file-back-right-hover) {
  opacity: 0;
  transform: rotate(0deg) translateX(-8px) translateY(7px);
}

/* Extension tags styles */
.extensionTags {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.extensionTag {
  position: absolute;
  display: flex;
  align-items: center;
  height: 21px;
  padding: 0 var(--spacing-1);
  font-family: var(--code-font);
  font-size: var(--font-size-2);
  line-height: 21px;
  color: var(--button-primary-background);
  letter-spacing: -0.55px;
  white-space: nowrap;
  background-color: var(--primary-overlay-20);
  border-radius: var(--border-radius-sm);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--default-animation-duration)
    var(--default-timing-function);
}

.dropZone:hover .extensionTag {
  opacity: 1;
  transform: scale(1);
}

.extensionTag:nth-child(1) {
  /* .sql */
  top: 32px;
  right: 4px;
  transform: scale(0.8);
  transition-delay: 0.05s;
}

.dropZone:hover .extensionTag:nth-child(1) {
  transform: scale(1);
}

.extensionTag:nth-child(2) {
  /* .rb */
  top: -2px;
  left: 48px;
  transition-delay: 0.1s;
}

.extensionTag:nth-child(3) {
  /* .prisma */
  top: 7px;
  left: 78px;
  transition-delay: 0.15s;
}

.extensionTag:nth-child(4) {
  /* .json */
  top: 7px;
  left: 6px;
  transition-delay: 0.2s;
}

/* Valid schema styles */
.validSchemaContainer {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  width: 100%;
}

.validSchemaMessage {
  display: flex;
  gap: var(--spacing-3);
  align-items: center;
  padding: 0 var(--spacing-1);
}

.fetchStatus {
  display: flex;
  gap: var(--spacing-1half);
  align-items: center;
}

.checkIcon {
  width: var(--spacing-3);
  height: var(--spacing-3);
  color: var(--button-primary-background);
}

.validSchemaText {
  font-size: var(--font-size-2);
  color: var(--button-primary-background);
  white-space: nowrap;
}

.invalidIcon {
  width: var(--spacing-3);
  height: var(--spacing-3);
  color: var(--severity-warning-100);
}

.invalidSchemaText {
  font-size: var(--font-size-2);
  color: var(--severity-warning-100);
  white-space: nowrap;
}

.detectedText {
  font-size: var(--font-size-2);
  line-height: 1.6;
  color: var(--global-mute-text);
}

.formatName {
  color: var(--global-foreground);
}

.matchFiles {
  width: 100%;
  padding: var(--spacing-2);
  background-color: var(--overlay-5);
  border-radius: var(--border-radius-md);
}

.matchFileItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.uploadedFile {
  position: relative;
  display: flex;
  gap: var(--spacing-1half);
  align-items: center;
  padding: var(--spacing-1half);
  background-color: var(--overlay-5);
  border: 1px solid var(--overlay-5);
  border-radius: var(--border-radius-base);
}

.fileName {
  font-size: var(--font-size-3);
  color: var(--global-foreground);
}

.formatSelect {
  display: flex;
  gap: var(--spacing-1);
  align-items: center;
  min-width: 127px;
  padding: var(--spacing-1) var(--spacing-2);
  cursor: pointer;
  background-color: var(--global-background);
  border: 1px solid var(--pane-border);
  border-radius: var(--border-radius-base);
  transition: border-color var(--default-animation-duration)
    var(--default-timing-function);
}

.formatSelect:hover {
  border-color: var(--pane-border-hover);
}

.formatText {
  flex: 1;
  font-size: var(--font-size-3);
  color: var(--global-foreground);
}

.chevronIcon {
  width: var(--spacing-3);
  height: var(--spacing-3);
  color: var(--overlay-50);
}

.hiddenFileInput {
  display: none;
}
